package com.atguigu.jvm.day01;

import java.util.ArrayList;

/**
 * @ClassName JvmDemo02
 * @Description 此类描述:
 * @Author dangchen
 * @DateTime 2022-09-16 23:13
 * @Version 1.0
 */
public class JvmDemo02 {
    public static void main(String[] args) {
        ArrayList<Dog> list = new ArrayList<>();
        while (true){
            list.add(new Dog());
        }
    }
}
class Dog{
    byte[] aByte = new byte[1*1024*1024];
}
